<%-- 
    Document   : LogInOut
    Created on : Jun 6, 2012, 3:50:27 PM
    Author     : Student
--%>

<%@tag description="put the tag description here" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/style/style.css" />

<script  src="${pageContext.request.contextPath}/js/qaEffect.js"></script>
<script src="${pageContext.request.contextPath}/js/flexiblelist.js"></script>

<%-- The list of normal or fragment attributes can be specified here: --%>
<%@attribute name="account" required="true" type="model.Account"%>
<%@attribute name="message"%>
<%-- any content can be specified here e.g.: --%>


 <div id ="topcontainer" >
    <div id ="topbanner" >



        <c:if test="${account eq null}" >
            <a href="${pageContext.request.contextPath}/Pages/Login.jsp">    Login</a>
            <br/> <br/> <br/>


            <a href="${pageContext.request.contextPath}/Pages/Register.jsp">   Register </a>
        </c:if>


        <c:if test="${account ne null}" >


            <a href="${pageContext.request.contextPath}/LogoutController">  Logout </a>

            <span>  Welcome back ${account.name}</span>

        </c:if>     


  </div>


    </div>

